$(window).ready(function(){						
	$('#aDiv1').click(function(){
		$('#div1').attr('title',i18n.message.msg).dialog(dialogConfig);
	});
				
	$('#aDiv2').click(function(){
		$('#div2').attr('title',i18n.message.msg).dialog(dialogConfig);
	});		
				
	$('#aDiv3').click(function(){
		$('#div3').attr('title',i18n.message.msg).dialog(dialogConfig);
	});	
				
	$('#aDiv4').click(function(){
		$('#div4').attr('title',i18n.message.msg).dialog(dialogConfig);
	});
	
	$('#aDiv5').click(function(){
		$('#div5').attr('title',i18n.message.msg).dialog(dialogConfig);
	});
	
	$('#newBtnStudent').bind("click",function(){					
		var formObj = FormUtils.convertSimpleForm2ObjectBySelector("form[name=editFormStudent]");					
		$("#divFormObjJsonString").html($.objToJSONString(formObj));
	});
	
	$('#newBtnStudentByFormName').bind("click",function(){					
		var formObj = FormUtils.convertSimpleForm2ObjectByName("editFormStudent");					
		$("#divFormObjJsonString").html($.objToJSONString(formObj));
	});
	
	$('#newBtnStudentByFormId').bind("click",function(){					
		var formObj = FormUtils.convertSimpleForm2Object("editFormStudent");					
		$("#divFormObjJsonString").html($.objToJSONString(formObj));
	});
	
	$('#listBtnStudentByFormId').bind("click",function(){
		var myDate = new Date();
		myDate.setFullYear(2012,3,13);
		var student = {studentNum:"001",studentName:"涛哥",birthday:myDate,address:"福建厦门",telphone:"1234556",email:"xxx@sina.com",gender:"true",idCard:"67467467467467",remark:"学生备注"};	
		FormUtils.convertSimpleObject2Form(student,"listFormStudent");
	});
	
	$('#listBtnStudentByFormName').bind("click",function(){
		var myDate = new Date();
		myDate.setFullYear(2012,3,13);
		var student = {studentNum:"001",studentName:"涛哥",birthday:myDate,address:"福建厦门",telphone:"1234556",email:"xxx@sina.com",gender:"true",idCard:"67467467467467",remark:"学生备注"};	
		FormUtils.convertSimpleObject2FormByName(student,"listFormStudent");
	});
});